import request from '@/utils/request'

// 短租订单列表 https://www.showdoc.com.cn/1846525842933182/8547107341420538
export function index(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/list',
        method: 'get',
        params: data
    })
}

// 还车验车收费项 https://www.showdoc.com.cn/1846525842933182/8611637332204534
export function alsoCarItems(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/alsoCarItems',
        method: 'get',
        params: data
    })
}

// 还车验车提交 https://www.showdoc.com.cn/1846525842933182/8611637332204534
export function alsoCarTest(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/alsoCarTest',
        method: 'post',
        params: data
    })
}

// 日志列表 https://www.showdoc.com.cn/1846525842933182/8496835659012726
export function operationLog(params) {
    return request({
        url: '/member/basic/operationLog',
        method: 'get',
        params: params
    })
}

// 选择车型 https://www.showdoc.com.cn/1846525842933182/8564551714853427
export function classificationMoldelList(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/classificationMoldelList',
        method: 'post',
        data: data
    })
}

// 查询套餐 https://www.showdoc.com.cn/1846525842933182/8567400477031665
export function modelMealList(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/modelMealList',
        method: 'post',
        data: data,
    })
}

// 短租选择方案套餐 https://www.showdoc.com.cn/1846525842933182/8567494746573451
export function confirmationOrder(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/confirmationOrder',
        method: 'post',
        data: data,
    })
}

// 短租订单详情 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function detail(orderNo) {
    return request({
        url: '/luxuryOrder/luxuryOrder/' + orderNo,
        method: 'get'
    })
}

// 短租订单费用明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function costDetail(orderNo) {
    return request({
        url: '/luxuryOrder/luxuryOrder/costDetail/' + orderNo,
        method: 'get'
    })
}

// 短租订单费用明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function depositRefundDetail(orderNo) {
    return request({
        url: '/luxuryOrder/luxuryOrder/depositRefundDetail/' + orderNo,
        method: 'get'
    })
}
// 短租订单费用明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function IllegalProcessing(orderNo) {
    return request({
        url: '/luxuryOrder/luxuryOrder/IllegalProcessing/' + orderNo,
        method: 'get'
    })
}
// 修改短租订单 https://www.showdoc.com.cn/1846525842933182/8547751219218336
export function put(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/',
        method: 'put',
        data,
    })
}

// 新增短租订单 https://www.showdoc.com.cn/1846525842933182/8547402672332975
export function add(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/',
        method: 'post',
        data,
    })
}


// 删除短租订单 https://www.showdoc.com.cn/1846525842933182/8547724210192744
export function cancel(orderNos) {
    return request({
        url: '/luxuryOrder/luxuryOrder/cancel/' + orderNos,
        method: 'post',
    })
}

// 配车--车辆列表 https://www.showdoc.com.cn/1846525842933182/8550428501165596
export function carlist(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/carList',
        method: 'post',
        data,
    })
}
// 配车--车辆列表 维保信息
export function carListByMaintenance(data) {
  return request({
    url: '/luxuryOrder/luxuryOrder/carListByMaintenance',
    method: 'get',
    params: data,
  })
}
// 确定配车 https://www.showdoc.com.cn/1846525842933182/8551108486054123
export function supplyCar(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/supplyCar',
        method: 'put',
        data,
    })
}

// 分配选择用户列表 https://www.showdoc.com.cn/1846525842933182/8549754158573497
export function geUserlist(params) {
    return request({
        url: '/luxuryOrder/luxuryOrder/geUserlist',
        method: 'get',
        params,
    })
}

// 短租订单分配业务员 https://www.showdoc.com.cn/1846525842933182/8550362185862696
export function distribution(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/distribution',
        method: 'put',
        data,
    })
}


// 交车验车/还车验车 https://www.showdoc.com.cn/1846525842933182/8552170104839089
export function delivery(data) {
    return request({
        url: '/luxuryOrder/luxuryOrder/delivery',
        method: 'post',
        data,
    })
}

// 交车验车单列表
export function deliveryList(orderNo) {
    return request({
        url: '/luxuryOrder/luxuryOrder/deliveryInfo/' + orderNo,
        method: 'get',
    });
}

// 还车验车单列表
export function alsoCarTestInfo(orderNo) {
    return request({
        url: '/luxuryOrder/luxuryOrder/alsoCarTestInfo/' + orderNo,
        method: 'get',
    });
}

// 线下收款 收取租金
export function chargeRent(orderNo) {
    return request({
        url: '/luxuryOrder/luxuryOrder/chargeRent/' + orderNo,
        method: 'post',
    })
}

// 线下收款 收取押金
export function chargeDeposit(orderNo) {
    return request({
        url: '/luxuryOrder/luxuryOrder/chargeDeposit/' + orderNo,
        method: 'post',
    })
}
// 线下收取补缴费用
export function confirmReceipt(id) {
    return request({
        url: '/luxuryOrder/luxuryOrder/confirmReceipt/' + id,
        method: 'get',
    })
}
//  线下意见收取补缴费用
export function confirmReceiptAll(orderNo) {
    return request({
        url: '/luxuryOrder/luxuryOrder/confirmReceiptAll/' + orderNo,
        method: 'get',
    })
}
// 完成租车押金结算单
export function overDepositSettlement(orderNo) {
  return request({
    url: 'luxuryOrder/luxuryOrder/overDepositSettlement/' + orderNo,
    method: 'post',
  })
}

// 押金结算退款
export function depositRefund(orderNo) {
  return request({
    url: 'luxuryOrder/luxuryOrder/depositRefund/' + orderNo,
    method: 'post',
  })
}

// 完成违章押金结算单
export function OverIllegalDeposit(data) {
  return request({
    url: 'luxuryOrder/luxuryOrder/OverIllegalDeposit',
    method: 'post',
    data:data
  })
}

// 违章押金退款
export function IllegalDepositRefund(orderNo) {
  return request({
    url: 'luxuryOrder/luxuryOrder/IllegalDepositRefund/' + orderNo,
    method: 'post',
  })
}
